package com.example.zz.example;

import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;

import android.graphics.Typeface;
import android.os.Bundle;


import com.example.zz.example.databinding.ActivityTextStyleBinding;

import java.io.File;

public class TextStyleActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ActivityTextStyleBinding data = DataBindingUtil.setContentView(this, R.layout.activity_text_style);
        data.text1.setTypeface(Typeface.createFromAsset(this.getAssets(), "fonts" + File.separator + "digital-7.ttf"));
        data.text2.setTypeface(Typeface.createFromAsset(this.getAssets(), "fonts" + File.separator + "OpenSans-Bold.ttf"));
        data.text3.setTypeface(Typeface.createFromAsset(this.getAssets(), "fonts" + File.separator + "OpenSans-BoldItalic.ttf"));
        data.text4.setTypeface(Typeface.createFromAsset(this.getAssets(), "fonts" + File.separator + "OpenSans-ExtraBold.ttf"));
        data.text5.setTypeface(Typeface.createFromAsset(this.getAssets(), "fonts" + File.separator + "OpenSans-ExtraBoldItalic.ttf"));
        data.text6.setTypeface(Typeface.createFromAsset(this.getAssets(), "fonts" + File.separator + "OpenSans-Light.ttf"));
        data.text7.setTypeface(Typeface.createFromAsset(this.getAssets(), "fonts" + File.separator + "OpenSans-LightItalic.ttf"));
        data.text8.setTypeface(Typeface.createFromAsset(this.getAssets(), "fonts" + File.separator + "OpenSans-Regular.ttf"));
        data.text9.setTypeface(Typeface.createFromAsset(this.getAssets(), "fonts" + File.separator + "OpenSans-Semibold.ttf"));
        data.text10.setTypeface(Typeface.createFromAsset(this.getAssets(), "fonts" + File.separator + "OpenSans-SemiboldItalic.ttf"));
        data.text11.setTypeface(Typeface.createFromAsset(this.getAssets(), "fonts" + File.separator + "OpenSans-Italic.ttf"));


    }


}